﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace YT_XHProject
{
    public partial class frmFlashForm : Form
    {
        public frmFlashForm()
        {
            InitializeComponent();
        }

        private void frmFlashForm_Load(object sender, EventArgs e)
        {
            this.timer2.Start();
            this.timer1.Start();  
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.Close(); 
        }

        private void timer2_Tick(object sender, EventArgs e)
        {
            ChangeOpacity();
        }

        private void ChangeOpacity()
        {
           
                if (this.Opacity >= 1)
                    timer2.Stop();
                this.Opacity += 0.04;
                      
        }
    }
}
